package com.kc.road.camera.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * Created by yzm on 2018/3/10.
 */
@Component
public class MyApplicationRunner implements ApplicationRunner {

    @Autowired
    private CameraService cameraService;

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        //CameraService cameraService = new CameraService();
        cameraService.doIt();
    }
}
